#!/bin/bash
#

##read -p "输入系统名称：" system
##if [ "$system" == "linux" -o "$system" == "Linux" ]; then
##    echo "红帽"
##elif [ "$system" == "windows" -o "$system" == "Windows" ]; then
##    echo "微软"
##elif [ "$system" == "mac" ] || [ "$system" == "Mac" ]; then
##    echo "苹果"
##else
##    echo "其他"
##fi

#判断是否有参数
#if [ -z $1 ]; then
if [ $# -eq 0 ]; then
    echo "帮助（请输入参数）：$0 <linux|windows|mac>"
    exit 92
fi

#判断参数的取值
case $1 in
    linux|Linux)
	echo "红帽"
	;;
    windows|Windows)
	echo "微软"
	;;
    mac|Mac)
	echo "苹果"
	;;
    *)
	echo "其他"
	;;
esac 
